﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SeniorCapstoneProject
{
    
         public class verifyUser
        {
            public string Username { get; set; }
            private string password = string.Empty;
            
            public string Password { get { return password; } set { password = encryptPass(value); } }
            public int groupID { get; set; }
            
            public verifyUser()
            {

            }



            public string encryptPass(string password)
            {
                //encrypt password before sending to over wire
                string hash = Convert.ToBase64String(System.Security.Cryptography.MD5.Create().ComputeHash(Encoding.UTF8.GetBytes(password)));
                return hash;
            }
        
     }
    
}
